import { _decorator, Component, director, Node, ProgressBar } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('MainScere')
export class MainScere extends Component {
    private num = 60
    start() {

    }

    update(deltaTime: number) {
        this.num--
        this.node.getComponent(ProgressBar).progress = 1-(this.num/60)
        if(this.num == 0){
            director.loadScene('scene1')
        }
    }
}


